package com.rf.richfitwheel.admin.sys.dao;

import com.rf.richfitwheel.admin.sys.model.UserStation;
import com.rf.richfitwheel.admin.sys.model.UserStationExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserStationMapper {
    long countByExample(UserStationExample example);

    int deleteByExample(UserStationExample example);

    int deleteByPrimaryKey(String id);

    int insert(UserStation record);

    int insertSelective(UserStation record);

    List<UserStation> selectByExample(UserStationExample example);

    UserStation selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") UserStation record, @Param("example") UserStationExample example);

    int updateByExample(@Param("record") UserStation record, @Param("example") UserStationExample example);

    int updateByPrimaryKeySelective(UserStation record);

    int updateByPrimaryKey(UserStation record);
    
    /**
     * 只删除对应模块的记录
     * @param params {userId:"", moduleType: [String,String...]}
     */
    void deleteByUserIdAndModuleType(Map<String, Object> params);
}